package org.objectrproject.service;

import java.util.List;

import org.objectrproject.repository.GenericDao;


public class GenericServiceImpl<T> implements GenericService<T> {

	private GenericDao<T> genericDao;
	
	public List<T> getObjects() {
		
		return genericDao.getObjectList();
	}
	
	public void createObject(T object) {
		genericDao.saveObject(object);
	}

	
    public void setGenericDao(GenericDao<T> genericDao) {
        this.genericDao = genericDao;
    }
}
